<%-- 
    Document   : result
    Created on : Mar 25, 2013, 7:54:05 PM
    Author     : NoiR
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://displaytag.sf.net" prefix="display"%>

<style media="all" type="text/css">
    @import "css/displaytag.css";
</style>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <h1>Result Page</h1>
        <c:choose>
            <c:when test="${empty sessionScope.RESULT}">
                <h2>Result not found</h2>
            </c:when>
            <c:otherwise>
                <display:table name="sessionScope.RESULT" pagesize="10"
                               export="false" sort="list" id="dispTable">
                    <display:column property="songTitle" title="Title"
                                    sortable="true" headerClass="sortable"/>
                    <display:column property="artists" title="Artist"
                                    sortable="true" headerClass="sortable"/>
                </display:table>
            </c:otherwise>
        </c:choose>
    </body>
</html>
